realtek: pcs: add helpers for even, odd, neighbor SerDes
authorJonas Jelonek <[email protected]>
Sat, 13 Dec 2025 10:16:21 +0000 (10:16 +0000)
committerRobert Marko <[email protected]>
Tue, 16 Dec 2025 12:37:32 +0000 (13:37 +0100)
commit232c1fb14a072ee5c3c96ead43919ab5add526dd
treeefe60d88cd2f258ed708a455fb09f3a268b39167
parent6b3f8fb16faf1e9c28b282340a112b2bcb06b0d3
realtek: pcs: add helpers for even, odd, neighbor SerDes

Add dedicated helpers to get references to even, odd and neigbor SerDes
if needed. This should replace the various calculations scattered
throughout the code, providing a unified way to work with adjacent
SerDes.

Signed-off-by: Jonas Jelonek <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/21146
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c